##### 删除frps进程
#!/bin/sh
wget https://github.com/fatedier/frp/releases/download/v0.44.0/frp_0.44.0_linux_amd64.tar.gz
tar -zxf frp_0.44.0_linux_amd64.tar.gz
rm -f frp_0.44.0_linux_amd64.tar.gz
mv frp_0.44.0_linux_amd64 /var/www/frps
chmod +x /var/www/frps/frps

# 启动所有frps
for file in /usr/frps/config/*
do
if [ $(echo $file | grep '.ini') ];then
    nohup /usr/frps/frps -c $file >/dev/null 2>&1 &
fi
done


# 停止所有fprs
for line in $(ps aux|grep frp| grep -v grep | awk '{print $2}')
do
kill -9 $line
done

